import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/home',
      name:'home',
      component: ()=>import('@/views/layout/home.vue'),
    },
    {
      path:'/ceshi',
      name:'ceshi',
      component: ()=>import('@/views/ceshi.vue')
    },{
      path:'/',
      redirect:'/home'
    }
  ],
})

export default router
